const { render } = require("./render/render.js");

const express = require("express");
const path = require("path");

const app = express();

app.use("/client", express.static(path.resolve(__dirname, "client")));

app.get("/*", (req, res) => {
  render(req, res, ["/client/client.js"]);
});

app.listen(3005, () => {
  console.log("http://localhost:3005");
});
